// app.js
App({
  onLaunch() {
    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    userInfo: null,
    curData: null,
    appid: 'wx36bf2aa9de628534',
    secret: 'c538efa2577f44a424daf88a048b8647',
  }
})
